package com.dayuanit.dy16.ebook.ebookweb.mapper;

import com.dayuanit.dy16.ebook.ebookweb.entity.Area;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AreaMapper {
    int deleteByPrimaryKey(Integer areaid);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Integer areaid);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    List<Area> listArea(@Param("level") Integer level, @Param("parentId") Integer parentId);
}